<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>文章管理</title>
    <hdjs/>
    <bootstrap/>
    <css file="__STATIC__/css/common.css"/>
    <script type="text/javascript" src="__STATIC__/js/jquery-1.8.2.min.js">
    </script>
   
    <link rel="stylesheet" type="text/css" href="__STATIC__/hdjs/hdjs.css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="__CONTROLLER_VIEW__/Css/css.css">
</head>
<style>
	table thead tr td .commontd{
		width:60px;
	}
</style>
<body>
<div class="wrap">
    <table class="table2 hd-table hd-table-list">
        <thead>
        <tr>
            <td  width="60">gid</td>
            <td width="60">商品名称</td>
            <td width="60">商品货号</td>
            <td width="60">商品单位</td>
            <td width="60">市场价</td>
            <td width="60">商城价</td>
            <td width="60">列表图</td>
            <td width="60">总库存</td>
            <td width="150">操作</td>
        </tr>
        </thead>
        <tbody>
        <foreach from="$goodsData" key="$k" value="$v">
	        <tr>
	            <td width="60">{$v.gid}</td>
	            <td width="60">{$v.gname}</td>
	            <td width="60">{$v.gnumber}</td>
	            <td width="60">{$v.unit}</td>
	            <td width="60">{$v.marketprice}</td>
	            <td width="60">{$v.shopprice}</td>
	            <td width="60"><img src="__ROOT__/{$v.smallpic}" alt="" style="height:60px" /></td>
	            <td width="60">总库存</td>
	            <td width="150">
	            	<a href="{|U:'ShopList/index',array('gid'=>$v['gid'])}">货号列表</a>
	            	<a href="{|U:'edit',array('gid'=>$v['gid'])}">编辑</a>
	            	<a href="{|U:'del',array('gid'=>$v['gid'])}">删除</a>
	            	
	            </td>
	        </tr>
        </foreach>
        </tbody>
    </table>
    <div class="page_hdjob">
      
    </div>
</div>

</body>
</html>


